BIN=$(patsubst %.c, %, $(wildcard *.c))
#BIN2=$(patsubst %.m, %, $(wildcard *.m))


.SUFFIXES: .o .m
.m.o:
	$(CC) -c $(CFLAGS) $< 

CFLAGS+=-g -Wall -I/data/include -D_TEST
LDLIBS+=-L/data/lib -llua -ldl -lm
# -lobjc

CFLAGS+=-g -Wall -I$(ADDON)/include -D_TEST
LDLIBS+=-L$(ADDON)/lib -llua -ldl -lm -lobjc

all : $(BIN) $(BIN2)

$(BIN) : % : %.o

$(BIN2) : % : %.o

clean:
	@rm -vf *.o
